package org.projectname.entity.book;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hishenframework.core.data.jdbc.entity.AbstractHishenEntity;

/**
 * 图书类别实体
 * @author Panda
 *
 */
@Entity
@Table(name = "t_book_part")
public class BookPart extends AbstractHishenEntity {
	
	/** 主键自增 */
	@Id
	@GeneratedValue (strategy = GenerationType.IDENTITY)
	private Integer id;
	
	/** 类别名称 */
	@Column(name = "part_name")
	private String partName;
	
	/** 该类别下图书种类 */
	@Transient
	private long typeCount;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public long getTypeCount() {
		return typeCount;
	}

	public void setTypeCount(long typeCount) {
		this.typeCount = typeCount;
	}
}
